/**
 * @Author：JIAMIN_TANG
 * @Description:
 * @CreateTime：2025/9/24 18:12
 */

//public class Person{这种写法是错误的
class Person{
    private String name = "Person";
    int age = 0;

}public class Child extends Person {
    public String grade;
    public static void main(String[] args){
        Person p = new Child();
        System.out.println("p.name");
    }
}
